<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<!DOCTYPE html>
<html class="x-admin-sm">

<head>
    <meta charset="UTF-8">
    <title>欢迎页面-X-admin2.2</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport"
          content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
    <link rel="stylesheet" href="css/font.css">
    <link rel="stylesheet" href="css/xadmin.css">
    <link rel="stylesheet" href="css/admin.css">
    <script src="lib/layui/layui.js" charset="utf-8"></script>
    <script type="text/javascript" src="js/xadmin.js"></script>
    <!-- 让IE8/9支持媒体查询，从而兼容栅格 -->
    <!--[if lt IE 9]>
    <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
    <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
    <style>
        .procu_show_p{
            height: 38px;
            line-height: 38px;
            font-weight: bold;
        }
        .procu_show_p_long{
            font-weight: bold;
        }
        .layui-form-label{
            width: 140px;
        }
    </style>
</head>


<body>
<div class="x-nav">
                <span class="layui-breadcrumb">
                    <a href="">首页</a>
                    <a href="">供应商管理</a>
                    <a>
                        <cite>查看供应商</cite></a>
                </span>
    <a class="layui-btn layui-btn-small" style="line-height:1.6em;margin-top:3px;float:right" onclick="location.reload()" title="刷新">
        <i class="layui-icon layui-icon-refresh" style="line-height:30px"></i>
    </a>
</div>
<div class="layui-fluid">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-md12">
            <div class="layui-card">
                <form class="layui-form" action="">
                    <div class="layui-form-item">
                        <div class="layui-card-body ">
                            <fieldset class="layui-elem-field">
                                <legend>基本情况</legend>
                                <div class="layui-field-box">
                                    <div class="layui-row">

                                        <div class="layui-col-md4">
                                            <div class="layui-inline">
                                                <label class="layui-form-label">供应商名称：</label>
                                                <div class="layui-input-inline" style="width: 200px;">
                                                    <p class="procu_show_p">${sp.supply_name}</p>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="layui-col-md4">
                                            <div class="layui-inline">
                                                <label class="layui-form-label">组织机构代码：</label>
                                                <div class="layui-input-inline" style="width: 200px;">
                                                    <p class="procu_show_p">${sp.organ_code}</p>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="layui-col-md4">
                                            <div class="layui-inline">
                                                <label class="layui-form-label">供应商简称：</label>
                                                <div class="layui-input-inline" style="width: 200px;">
                                                    <p class="procu_show_p">${sp.simple_name}</p>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="layui-col-md4">
                                            <div class="layui-inline">
                                                <label class="layui-form-label">法人代表：</label>
                                                <div class="layui-input-inline" style="width: 200px;">
                                                    <p class="procu_show_p">${sp.legal_person}</p>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="layui-col-md4">
                                            <div class="layui-inline">
                                                <label class="layui-form-label">法人代表身份证：</label>
                                                <div class="layui-input-inline" style="width: 200px;">
                                                    <p class="procu_show_p">${sp.legal_person_id}</p>

                                                </div>
                                            </div>
                                        </div>
                                        <div class="layui-col-md4">
                                            <div class="layui-inline">
                                                <label class="layui-form-label">注册资金（万元）：</label>
                                                <div class="layui-input-inline" style="width: 200px;">
                                                    <p class="procu_show_p">${sp.registered_capital}万元</p>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="layui-col-md4">
                                            <div class="layui-inline">
                                                <label class="layui-form-label">税务登记证代码：</label>
                                                <div class="layui-input-inline" style="width: 200px;">
                                                    <p class="procu_show_p">${sp.tax_code}</p>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="layui-col-md4">
                                            <div class="layui-inline">
                                                <label class="layui-form-label">经营执照编号：</label>
                                                <div class="layui-input-inline" style="width: 200px;">
                                                    <p class="procu_show_p">${sp.license_number}</p>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="layui-col-md4">
                                            <div class="layui-inline">
                                                <label class="layui-form-label">开户银行：</label>
                                                <div class="layui-input-inline" style="width: 200px;">
                                                    <p class="procu_show_p">${sp.bank}</p>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="layui-col-md4">
                                            <div class="layui-inline">
                                                <label class="layui-form-label">账号：</label>
                                                <div class="layui-input-inline" style="width: 200px;">
                                                    <p class="procu_show_p">${sp.bank_account}</p>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="layui-col-md4">
                                            <div class="layui-inline">
                                                <label class="layui-form-label">公司注册地址：</label>
                                                <div class="layui-input-inline" style="width: 200px;">
                                                    <p class="procu_show_p">${sp.company_address}</p>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="layui-col-md4">
                                            <div class="layui-inline">
                                                <label class="layui-form-label">联系人：</label>
                                                <div class="layui-input-inline" style="width: 200px;">
                                                    <p class="procu_show_p">${sp.contacts}</p>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="layui-col-md4">
                                            <div class="layui-inline">
                                                <label class="layui-form-label">联系电话：</label>
                                                <div class="layui-input-inline" style="width: 200px;">
                                                    <p class="procu_show_p">${sp.contact_phone}</p>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="layui-col-md4">
                                            <div class="layui-inline">
                                                <label class="layui-form-label">传真：</label>
                                                <div class="layui-input-inline" style="width: 200px;">
                                                    <p class="procu_show_p">${sp.fax}</p>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="layui-col-md4">
                                            <div class="layui-inline">
                                                <label class="layui-form-label">邮政编码：</label>
                                                <div class="layui-input-inline" style="width: 200px;">
                                                    <p class="procu_show_p">${sp.postal_code}</p>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="layui-col-md4">
                                            <div class="layui-inline">
                                                <label class="layui-form-label">联系地址：</label>
                                                <div class="layui-input-inline" style="width: 200px;">
                                                    <p class="procu_show_p">${sp.contact_address}</p>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="layui-col-md4">
                                            <div class="layui-inline">
                                                <label class="layui-form-label">电子邮箱：</label>
                                                <div class="layui-input-inline" style="width: 200px;">
                                                    <p class="procu_show_p">${sp.email}</p>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="layui-col-md4">
                                            <div class="layui-inline">
                                                <label class="layui-form-label">煤存放地点：</label>
                                                <div class="layui-input-inline" style="width: 200px;">
                                                    <p class="procu_show_p">${sp.coal_place}</p>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="layui-col-md4">
                                            <div class="layui-inline">
                                                <label class="layui-form-label">运输方式及保障能力：</label>
                                                <div class="layui-input-inline" style="width: 200px;">
                                                    <p class="procu_show_p">${sp.type_shipping}；${sp.annual_supply}</p>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </fieldset>

                        <%--    <fieldset class="layui-elem-field">
                                <legend>附件信息</legend>
                                <div class="layui-field-box">
                                    <div class="layui-row">
                                        <div class="layui-col-md12">
                                            <table class="layui-table">
                                                <colgroup>
                                                    <col width="150">
                                                    <col width="200">
                                                    <col>
                                                </colgroup>
                                                <thead>
                                                <tr>
                                                    <th>序号</th>
                                                    <th>文件名称</th>
                                                    <th>大小</th>
                                                    <th>上传人</th>
                                                    <th>上传时间</th>
                                                </tr>
                                                </thead>
                                                <tbody>
                                                <c:if test="${auditList != null}">
                                                    <c:forEach items="${auditList}" var="list">
                                                        <tr>
                                                            <td>${list.audit_id}</td>
                                                            <td>${list.operator}</td>
                                                            <td>中能热电</td>
                                                            <td>
                                                                <c:if test="${list.operate == 1}">审核通过</c:if>
                                                                <c:if test="${list.operate == 2}">已驳回</c:if>
                                                            </td>
                                                            <td>${list.audit_content}</td>
                                                            <td><fmt:formatDate value="${list.audit_date}" pattern="yyyy-MM-dd HH:mm:ss" /></td>
                                                        </tr>
                                                    </c:forEach>
                                                </c:if>
                                                </tbody>
                                            </table>
                                        </div>
                                    </div>
                                </div>
                            </fieldset>--%>

                            <fieldset class="layui-elem-field">
                                <legend>审批记录</legend>
                                <div class="layui-field-box">
                                    <div class="layui-row">
                                        <div class="layui-col-md12">
                                            <!-- 有审批记录 -->
                                            <table class="layui-table">
                                                <colgroup>
                                                    <col width="150">
                                                    <col width="200">
                                                    <col>
                                                </colgroup>
                                                <thead>
                                                <tr>
                                                    <th>序号</th>
                                                    <th>注册对象</th>
                                                    <th>注册日期</th>
                                                    <th>审核单位</th>
                                                    <th>审核人</th>
                                                    <th>供应商类别</th>
                                                    <th>审核日期</th>
                                                </tr>
                                                </thead>
                                                <tbody>
                                                <c:if test="${auditrecord != null}">
                                                    <c:forEach items="${auditrecord}" var="list">
                                                        <tr>
                                                            <td>${list.id}</td>
                                                            <td>${list.register}</td>
                                                            <td><fmt:formatDate value="${list.register_date}" pattern="yyyy-MM-dd HH:mm:ss" /></td>
                                                            <td>${list.audit_unit}</td>
                                                            <td>${list.auditor}</td>
                                                            <td>${list.supply_category}</td>
                                                            <td><fmt:formatDate value="${list.audit_date}" pattern="yyyy-MM-dd HH:mm:ss" /></td>
                                                        </tr>
                                                    </c:forEach>
                                                </c:if>
                                                </tbody>
                                            </table>
                                        </div>
                                    </div>
                                </div>
                            </fieldset>
                        </div>

                        <div class="layui-row">
                            <div class="pro_form_div" style="margin: 0 auto;width: 300px;padding-bottom: 40px;">
                                <a class="layui-btn" href="/to_blacklist?supply_name=${sp.supply_name}">黑名单申请</a>
                                <a class="layui-btn" onclick="xadmin.open('调整供应商类别','/to_changecategory?supply_name=${sp.supply_name}&supply_category=${sp.category}',400,300)" href="javascript:;">调整供应商类别</a>
                                <a class="layui-btn" href="javascript:history.back(-1)">返回</a>
                            </div>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>
</div>


</body>

</html>
